package controllers;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;

// public externe class ophalen
import beans.LocalizedBean;
import beans.InhoudBean1;

public class ChangeLanguageController extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        HttpSession sessie = request.getSession();
        String taal = request.getParameter("lang");
        InhoudBean1 c = new InhoudBean1();
        c.setTaal(taal);
        sessie.setAttribute("inhoud", c);
        String address = sessie.getAttribute("address").toString();
        RequestDispatcher d = request.getRequestDispatcher(address);
        d.forward(request, response);



    }
}
